import unittest,logging
from Page.Page import Page
from selenium import webdriver
from Tools.Tools import rizhi
from time import sleep
from ddt import ddt,file_data
@ddt
class Test_jiuxian(unittest.TestCase):
    def setUp(self):
        logging.info('ssss')
        self.driver = webdriver.Edge()
        rizhi()
    def tearDown(self):
        sleep(5)
        self.driver.quit()
        logging.info('ss')
    @file_data('../data.yaml')
    def test_jiuxian(self,username,password):
        po = Page(self.driver)
        po.open_url('http://10.59.9.12:7001/')
        po.login_loc()
        po.user_name(username)
        po.password_loc(password)
        sleep(10)
        po.login1_loc()
if __name__ == '__main__':
    unittest.main()
